package com.guoxin.chapter4.reentractlock.conditiontestmanytomany;

public class Run {
	public static void main(String[] args) {
		MyService service = new MyService();
		ThreadA [] threadAs = new ThreadA[10];
		ThreadB [] threadBs = new ThreadB[10];
		for(int i=0;i<10;i++){
			threadAs[i] = new ThreadA(service);
			threadBs[i] = new ThreadB(service);
			threadAs[i].start();
			threadBs[i].start();
		}
	}
}
